package org.dtrd.modules.archive.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;
import org.dtrd.modules.archive.entity.bean.ReportInfo;


/**
 * <p>
 * 用户报告单-待归类分组报告
 * </p>
 *
 * @author xia
 * @since 2022-09-13
 */
@Data
@TableName("dtrd_ent_rd_archive_report")
public class DtrdEntRdArchiveReport {

    @TableId(value = "data_id", type = IdType.AUTO)
    private Integer dataId;

    @TableField("is_del")
    @TableLogic
    private Integer isDel;

    @TableField("create_time")
    private Date createTime;

    @TableField("patient_id")
    private Integer patientId;

    @TableField("report_type")
    private Integer reportType;

    /**
     * 报告单图片链接，以逗号拼接
     */
    @TableField("report_urls")
    private String reportUrls;


    public DtrdEntRdArchiveReport init() {
        isDel = 0;
        createTime = new Date();
        reportType = 0;
        return this;
    }

}
